package com.xquant.transaction_management_system.model.PO;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xquant.transaction_management_system.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(description = "FinancialInstruments")
@TableName("financial_instruments")
public class FinancialInstruments extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "债券代码")
    @TableField("debenture_code")
    private String debentureCode;

    @ApiModelProperty(value = "债券名称")
    @TableField("debenture_name")
    private String debentureName;

    @ApiModelProperty(value = "交易市场")
    @TableField("market")
    private String market;

    @ApiModelProperty(value = "面值")
    @TableField("par_value")
    private BigDecimal parValue;

    @ApiModelProperty(value = "起息日")
    @TableField("value_date")
    private String valueDate;

    @ApiModelProperty(value = "到息日")
    @TableField("due_date")
    private String dueDate;

    @ApiModelProperty(value = "固定利率")
    @TableField("fixed_interest_rate")
    private Double fixedInterestRate;

    @ApiModelProperty(value = "价格偏离度")
    @TableField("price_deviation")
    private Double priceDeviation;

    @ApiModelProperty(value = "交易账户")
    @TableField("transaction_account")
    private String transactionAccount;

    @ApiModelProperty(value = "配置Id")
    @TableField("congiguration_id")
    private Long congigurationId;
}
